<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
    <title>思必达</title>
    <link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
    <script type="text/javascript" src="Assets/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="Assets/js/js_z.js"></script>
    <script type="text/javascript" src="Assets/js/banner.js"></script>
    <link rel="stylesheet" type="text/css" href="Assets/css/thems.css">
    <link rel="stylesheet" type="text/css" href="Assets/css/responsive.css">
    <!--<link rel="stylesheet" href="/sybida/managerteacherIndex/header.css">-->
    <script src="/sybida/common/js/locahostadress.js" charset="utf-8"></script>
    <link rel="stylesheet"  href="/sybida/layui/css/layui.css">

</head>

<body>

<div>
    <ul class="layui-nav layui-bg-black" style=" display: flex;justify-content: space-between; align-items: center; height: 125px;">
        <div style="margin-left: 8%;">
            <li class="layui-nav-item"> <a href="javascript:;" id="first" style="font-size: 20px">首页</a>
            <li class="layui-nav-item"><a href="javascript:void(0);"  style="font-size: 20px">学生管理</a>
                <dl class="layui-nav-child">
                    <dd><a id="infoStudent" href="javascript:;">查看班级学生</a></dd>
                    <dd><a id="classInfo" href="javascript:;">查看班级</a></dd>
                    <dd><a id="studyInfo" href="javascript:;">学习方向管理</a></dd>
                    <dd><a id="addStudy" href="javascript:;">添加学习方向</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;"  style="font-size: 20px">学生就业</a>
                <dl class="layui-nav-child">
                    <dd><a id="infostudentjob" href="javascript:;">就业数据统计</a></dd>
                    <dd><a id="studentInterviewTeacher" href="javascript:;">查看学生面试经历</a></dd>
                    <dd><a id="studentOfferForTeacher" href="javascript:;">查看学生Offer</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="javascript:;"  style="font-size: 20px">简历管理</a>
                <dl class="layui-nav-child">
                    <dd><a id="vitaeEvaluateTeacher"href="javascript:;">简历查看评级</a></dd>
                    <dd><a id="downforallteacher"href="javascript:;">下载简历</a></dd>
                </dl>
            </li>

            <li class="layui-nav-item"><a href="javascript:;"  style="font-size: 20px">企业管理</a>
                <dl class="layui-nav-child">
                    <dd><a id="addcompanyinfo"href="javascript:;">添加企业信息</a></dd>
                    <dd><a id="selectcompanyinfo"href="javascript:;">查看招聘信息</a></dd>
                </dl>
            </li>
        </div>

        <div  style="margin-right: 3%;">

            <li class="layui-nav-item" >

                <a href="javascript:;"  style="font-size: 20px">消息<sup style="color:white ;background-color:red;
border-radius:4px;padding-right: 2px; padding-left: 2px;"  id="advicenum">0</sup></a>
                <dl class="layui-nav-child">
                    <dd><a id="makeNotice" href="javascript:void(0);">发布通知</a></dd>
                    <dd><a id="receiveNotice" href="/sybida/publicTool/receiveNotice.html" target="_blank">接收通知</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">

            <li class="layui-nav-item" lay-unselect="">
                <a href="javascript:;"  style="font-size: 20px"><img id="userphotoA" src="//t.cn/RCzsdCq" style="width: 70px;height: 70px" class="layui-nav-img">我的</a>
                <dl class="layui-nav-child">
                    <dd><a id="changeTeacher"href="javascript:void(0);">修改个人信息</a></dd>
                    <dd><a id="changePsw" href="javascript:void(0);">修改密码</a></dd>
                    <dd><a id="login" class="btn" style="border: none" onclick="exittologin()">退出</a></dd>
                </dl>
            </li>

        </div>
    </ul>
</div>

<!--头部-->
<!--幻灯片-->

<!--幻灯片-->



<div style="width: 80%; margin: 0 auto;">
    <iframe src="/sybida/managerteacherIndex/body.html" frameborder="0" scrolling="no" style="border:0px; width: 100%"   id="ifream1" name="ifream1"  frameborder="0" ></iframe>
    <script type="text/javascript">
        function reinitIframe(){
            var iframe = document.getElementById("ifream1");
            try{
                var bHeight=0
                var dHeight=0
                bHeight = iframe.contentWindow.document.body.scrollHeight;
                dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
                var height = Math.min(bHeight, dHeight);
                iframe.height = height+100;
            }catch (ex){}
        }
        reinitIframe()
        window.setInterval("reinitIframe()", 200);
    </script>
</div>

<div class="fn_bg">
    <div class="fn_m clearfix">
        <ul class="code clearfix">
            <li>
                <b>关注思必达</b>
                <img src="Assets/upload/a1.png" alt=""/>
                <p>扫描思必达，查看最新产品、资讯与动态。</p>
            </li>
            <li>
                <b>思必达买卖信息</b>
                <img src="Assets/upload/a2.png" alt=""/>
                <p>扫一扫查看行业库存买卖信息</p>
            </li>
        </ul>
        <ul class="f_nav clearfix">
            <li>
                <b>关于思必达</b>
                <p><a href="javascript:;">公司简介</a></p>
                <p><a href="javascript:;">组织架构</a></p>
                <p><a href="javascript:;">公司历程</a></p>
                <p><a href="javascript:;">公司理念</a></p>
                <p><a href="javascript:;">业界肯定</a></p>
            </li>
            <li>
                <b>代理产品</b>
                <p><a href="javascript:;">消费类电子</a></p>
                <p><a href="javascript:;">移动通讯电子</a></p>
                <p><a href="javascript:;">工业电子</a></p>
                <p><a href="javascript:;">推荐产品</a></p>
                <b>合作伙伴</b>
                <p><a href="javascript:;">供应商</a></p>
                <p><a href="javascript:;">主要客户</a></p>
            </li>
            <li>
                <b>人力资源</b>
                <p><a href="javascript:;">员工福利</a></p>
                <p><a href="javascript:;">人才招聘</a></p>
                <b>新闻与活动</b>
                <p><a href="javascript:;">行业新闻</a></p>
                <p><a href="javascript:;">公司活动</a></p>
            </li>
        </ul>
        <div class="f_ct clearfix">
            <ul>
                <li class="clearfix">
                    <img src="Assets/images/icon7.png" alt=""/>
                    <span>深圳地址： XXX</span>
                </li>
                <li class="clearfix">
                    <img src="Assets/images/icon8.png" alt=""/>
                    <span>邮箱：<a href="javascript:;">XXX</a></span>
                </li>
                <li class="clearfix">
                    <img src="Assets/images/icon9.png" alt=""/>
                    <span>电话：<a href="tel:075583479990">XXX</a></span>
                </li>
            </ul>
            <ul>
                <li class="clearfix">
                    <img src="Assets/images/icon7.png" alt=""/>
                    <span>香港地址： XXX</span>
                </li>
                <li class="clearfix">
                    <img src="Assets/images/icon8.png" alt=""/>
                    <span>邮箱：<a href="mailto:XXX">XXX</a></span>
                </li>
                <li class="clearfix">
                    <img src="Assets/images/icon9.png" alt=""/>
                    <span>电话：<a href="tel:XXX">XXX</a></span>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="f_bg">
    <div class="foot">
        <span>版权所有©XXX电子股份有限公司</span><span>粤ICP备xxxxxxx号</span><span>地址：XXX</span><span>咨询电话：XXX</span>
    </div>
</div>
<script src="/sybida/jquery/jquery-3.3.1.min.js"></script>
<script src="/sybida/layui/layui.js"></script>
<script>


</script>
<script>
    var userid=getCookie("userid")
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $.ajax({
        url: url+"user/userinfoteach",
        type: 'POST',
        //   timeout: '30000',
        data: "userid="+userid ,
        // contentType: 'application/json;charset=utf-8',
        dataType: 'json',
        beforeSend: function(request) {
            request.setRequestHeader("token", userid);
        },
        success: function (data) {
            if (data == -1000) {
                location.href = logindexurl
            }else{
                if(data.code==1){

                   if(data.data.teachName && data.data.userAuthority==1){
                        $("#username").html(data.data.teachName+"--任课老师")
                        if(data.data.messageNum==0) {
                            $("#advicenum").html("")
                        }else{
                            $("#advicenum").html(data.data.messageNum)
                        }
                    }else {
                    }
                    if(data.data.teachPhoto){
                        $("#userphotoA").attr("src",Qnyurl+data.data.teachPhoto)
                        $("#userphotoA").attr("filter","none")
                    }else{

                    }
                    window.onload = wOnload();
                    //这是刷新浏览器执行的事件
                    function wOnload() {
                        var storage = window.sessionStorage;
                        var iframeSrc= storage.getItem("ifreammanagerteacher");
                        if(iframeSrc){
                            $("#ifream1").attr("src",iframeSrc);
                        }
                    }



                    $("#register").click(function () {

                        $("#ifream1").attr("src","/sybida/common/register.html")
                        iframeSrc = $("#ifream1").attr("src")
                        var storage = window.sessionStorage;
                        storage.setItem("ifreammanagerteacher",iframeSrc);

                    })
                    $("#classInfo").click(function () {

                        $("#ifream1").attr("src","/sybida/publicTool/classInfo.html")
                        iframeSrc = $("#ifream1").attr("src")
                        var storage = window.sessionStorage;
                        storage.setItem("ifreammanagerteacher",iframeSrc);

                    })
                    $("#infoStudent").click(
                        function () {
                            $("#ifream1").attr("src","../student/classStudent.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#addclassInfo").click(
                        function () {
                            $("#ifream1").attr("src","../student/infoStudent.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#studyInfo").click(
                        function () {
                            $("#ifream1").attr("src","../publicTool/studyInfo.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#studentJobForTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/studentJobForTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#studentOfferForTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/ClassstudentOfferForTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#studyInfo").click(
                        function () {
                            $("#ifream1").attr("src","../publicTool/studyInfo.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#downloadVitaeTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/vitaeEvaluateTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#vitaeEvaluateTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/vitaeEvaluateTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#changeTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/updateTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#resetPsw").click(
                        function () {
                            $("#ifream1").attr("src","../publicTool/resetPsw.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#addcompanyinfo").click(
                        function () {
                            $("#ifream1").attr("src","../company/insertCompany.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#selectcompanyinfo").click(
                        function () {
                            $("#ifream1").attr("src","../company/companyinfo2.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#changePsw").click(
                        function () {
                            $("#ifream1").attr("src","../publicTool/changePsw.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#addStudy").click(
                        function () {
                            $("#ifream1").attr("src","../publicTool/addStudy.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#studentInterviewTeacher").click(
                        function () {
                            $("#ifream1").attr("src","../teacher/studentInterviewTeacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                    $("#login").click(
                        function () {
                            top.location.replace("/sybida/login.html");
                        }
                    )
                    $("#first").click(
                        function () {
                            $("#ifream1").attr("src","/sybida/managerteacherIndex/body.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#infostudentjob").click(
                        function () {
                            $("#ifream1").attr("src","/sybida/publicTool/totalforstudent.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#downforallteacher").click(
                        function () {
                            $("#ifream1").attr("src","/sybida/teacher/downforallteacher.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#makeNotice").click(
                        function () {
                            $("#ifream1").attr("src","/sybida/publicTool/makeNotice.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )
                    $("#noticeTool").click(
                        function () {
                            $("#ifream1").attr("src","/sybida/publicTool/noticeTool.html")
                            iframeSrc = $("#ifream1").attr("src")
                            var storage = window.sessionStorage;
                            storage.setItem("ifreammanagerteacher",iframeSrc);
                        }
                    )

                }else{
                    alert("请检查网络是否连接" + data);
                }
            }
        },
        error: function (data) {
            alert("请检查网络是否连接" + data);
        }
    });

    function exittologin(){
        var userid=getCookie("userid")
        layui.use('layer', function(){
            var layer = layui.layer;
        });

        $.ajax({
            url: url+"login/exitlogin",
            type: 'POST',
            //   timeout: '30000',
            data: "userid="+userid ,
            // contentType: 'application/json;charset=utf-8',
            dataType: 'json',
            beforeSend: function(request) {
                request.setRequestHeader("token", userid);
            },
            success: function () {

            }
        });
        location.href="../login.html"
    }
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });
</script>

</body>
</html>
